#ifndef REFILLLIST_H
#define REFILLLIST_H

#include <QtGui>
#include <QtSql>
#include "mydatamodel.h"


namespace Ui {
class fillList;
}

class fillList : public QFrame
{
    Q_OBJECT
    
public:
    explicit fillList(QWidget *parent = 0);
    ~fillList();

public slots:
    void updateList();

private:
    Ui::fillList *ui;

    QString getQuery();
    myDataModel *dbModel;
    void fillStuff();
    bool showAll;


    enum{
        FDB_enumber,
        FDB_indate,
        FDB_client,
        FDB_cartridge,
        FDB_quantity,
        FDB_outdate,
        FDB_result,
        FDB_comment,
        FDB_who

    };
private slots:
    void	fcurrentRowChanged ( const QModelIndex & current, const QModelIndex & previous );

    void on_addButton_clicked();
    void on_changeButton_clicked();
    void on_doneButton_clicked();
    void on_showallButton_clicked();
    void on_searchEdit_returnPressed();
    void on_delsearchButton_clicked();
    void on_searchButton_clicked();
    void on_exportButton_clicked();
};

#endif // REFILLLIST_H
